import request from "../../utils/request";

export function getWeeklyPlan(params) {
  return request({
    url: "/plan/weekly/list",
    method: "get",
    params,
  });
}

export function addWeeklyPlan(data) {
  return request({
    url: "/plan/weekly/add",
    method: "post",
    data,
  });
}

export function updateWeeklyPlan(data) {
  return request({
    url: "/plan/weekly/update",
    method: "put",
    data,
  });
}

export function topWeeklyPlan(data) {
  return request({
    url: "/plan/weekly/top",
    method: "put",
    data,
  });
}

export function getDailyTotal(data) {
  return request({
    url: "/plan/weekly/daily/total",
    method: "post",
    data,
  });
}

export function getWeeklySummarize(params) {
  return request({
    url: "/plan/weekly/summarize",
    method: "get",
    params,
  });
}

export function updateWeeklySummarize(data) {
  return request({
    url: "/plan/weekly/summarize",
    method: "post",
    data,
  });
}
